package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysAttendanceListMapper;
import com.ruoyi.system.domain.SysAttendanceList;
import com.ruoyi.system.service.ISysAttendanceListService;

/**
 * 排班列Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-01-31
 */
@Service
public class SysAttendanceListServiceImpl implements ISysAttendanceListService 
{
    @Autowired
    private SysAttendanceListMapper sysAttendanceListMapper;

    /**
     * 查询排班列
     * 
     * @param listId 排班列ID
     * @return 排班列
     */
    @Override
    public SysAttendanceList selectSysAttendanceListById(Long listId)
    {
        return sysAttendanceListMapper.selectSysAttendanceListById(listId);
    }

    /**
     * 查询排班列列表
     * 
     * @param sysAttendanceList 排班列
     * @return 排班列
     */
    @Override
    public List<SysAttendanceList> selectSysAttendanceListList(SysAttendanceList sysAttendanceList)
    {
        return sysAttendanceListMapper.selectSysAttendanceListList(sysAttendanceList);
    }

    /**
     * 新增排班列
     * 
     * @param sysAttendanceList 排班列
     * @return 结果
     */
    @Override
    public int insertSysAttendanceList(SysAttendanceList sysAttendanceList)
    {
        return sysAttendanceListMapper.insertSysAttendanceList(sysAttendanceList);
    }

    /**
     * 修改排班列
     * 
     * @param sysAttendanceList 排班列
     * @return 结果
     */
    @Override
    public int updateSysAttendanceList(SysAttendanceList sysAttendanceList)
    {
        return sysAttendanceListMapper.updateSysAttendanceList(sysAttendanceList);
    }

    /**
     * 批量删除排班列
     * 
     * @param listIds 需要删除的排班列ID
     * @return 结果
     */
    @Override
    public int deleteSysAttendanceListByIds(Long[] listIds)
    {
        return sysAttendanceListMapper.deleteSysAttendanceListByIds(listIds);
    }

    /**
     * 删除排班列信息
     * 
     * @param listId 排班列ID
     * @return 结果
     */
    @Override
    public int deleteSysAttendanceListById(Long listId)
    {
        return sysAttendanceListMapper.deleteSysAttendanceListById(listId);
    }
}
